//
// Created by wze-zero on 2024/8/28 028.
//
#include <iostream>

using namespace std;

int main() {
    long num;
    string s;
    cin >> num;
    s = to_string(num);
    for (int i = 0; i < s.length(); ++i) {
        if (s[i] % 2 == 0) {
            s[i] = '0';
        } else {
            s[i] = '1';
        }
    }
    cout << stoi(s) << endl;
    return 0;
}